<!DOCTYPE html>
<!--
	作者：xiaolinzi@vip.qq.com
	时间：2015-10-13
	描述：
-->
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
		<meta name="format-detection" content="telephone=no">
		<title>金融市场调查互评系统</title>
		<script type="text/javascript" src="http://tajs.qq.com/stats?sId=37342703" charset="UTF-8"></script>
		<link rel="stylesheet" href="css/frozen.css">
		<!--<link rel="stylesheet" href="demo/demo.css">-->
		<!--<link rel="stylesheet" href="css/input.css" />-->
		<!--<link rel="stylesheet" href="css/selector.css" />-->
		<script src="lib/zepto.min.js"></script>
		<script src="js/frozen.js"></script>
		<script type="text/javascript" src="js/av-mini.js"></script>
		<script type="text/javascript" src="js/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="js/jquery.raty.js"></script>
		<script type="text/javascript" src="js/kfzxfm.js"></script>
	</head>

	<body>
		<script type="text/javascript">
			if (window.localStorage) {
					var regcode = localStorage.regcode;
					var evalstatus = localStorage.evalstatus;
					var submit_code = localStorage.submit_code;
					if (regcode != undefined) {
						if (evalstatus == 0) {
							if(submit_code != undefined){
								if(submit_code == 1){//如提交標誌為正在提交，則提示正在提交 linzr 20160113
									location.href = "loading.html";
								}else{
									//stay on this page
								}
							}else{
								//stay on this page
							}
//							location.href = "choosebelong.html";
						} else{
							//location.href = "chooseresult.html";//评价结果页面
							location.href = "done.html";
						}
						//return;
					} else {
						location.href = "login.html";
					}
				}
		</script>
		<header class="ui-header ui-header-positive ui-border-b">
			<h1 title="" style="font-family: '微软雅黑'; font-size: large;">金融市场调查互评系统</h1>
		</header>

		<div class="ui-container ui-center" style="font-family: '微软雅黑'; color: #18b4ed; font-size: large;height: 50px;">
			<p>请选择互评业务线</p>
			<p class="ui-container ui-center" style="font-family: '微软雅黑'; color: red; font-size: small;position: fixed;height: 10px;">
				<br />即期线 可评分数: <span id="spot_all_num"></span> 已评分数:<span id="spot_used_num">0</span>
			</p>
			<p class="ui-container ui-center" style="font-family: '微软雅黑'; color: red; font-size: small;position: fixed;height: 10px;">
				<br />
				<br />远期线 可评分数: <span id="forward_all_num"></span> 已评分数:<span id="forward_used_num">0</span>
			</p>
			<p class="ui-container ui-center" style="font-family: '微软雅黑'; color: red; font-size: small;position: fixed;height: 10px;">
				<br />
				<br />
				<br />平台线 可评分数: <span id="plat_all_num"></span> 已评分数:<span id="plat_used_num">0</span>
			</p>
			<p class="ui-container ui-center" style="font-family: '微软雅黑'; color: red; font-size: small;position: fixed;height: 10px;display: none;">
				<br />
				<br />
				<br />
				<br />总体线 可评分数: <span id="man_all_num"></span> 已评分数:<span id="man_used_num">0</span>
			</p>
			<!--<br />其他线 可评分数: 0 已评分数:0</p>-->
		</div>
		<br />
		<br />
		<br />
		<!--<button class="ui-btn-lg ui-btn-primary ui-reddot" style="width: 200px;margin: auto;">
			即期线
		</button>
		<br />
		<button class="ui-btn-lg ui-btn-primary" style="width: 200px;margin: auto;">http://127.0.0.1:8020/system/chooseteam_notzongti.html
			远期线
		</button>
		<br />
		<button class="ui-btn-lg ui-btn-primary" style="width: 200px;margin: auto;">
			平台线
		</button>
		<br />
		<button class="ui-btn-lg ui-btn-primary" style="width: 200px;margin: auto;">
			总体线
		</button>-->

		<section class="ui-selector">
			<header class="ui-border-b">
				<!--<h3>选择</h3>-->
			</header>
			<div class="ui-selector-content" style="display:">
				<ul>
					<li class="ui-selector-item">
						<h3 class="ui-border-b">
          <span id="spot_aster" style="color: red; font-size: xx-large;display: none;">*</span><p>即期线</p><span id="spot_nums" class="ui-badge"></span>
        </h3>
						<ul id="spot" class="ui-list ui-border-b">
							<!--
                        	作者：xiaolinzi@vip.qq.com
                        	时间：2015-10-15
                        	描述：自動生成源碼
                        -->
						</ul>
					</li>
					<li class=" ui-selector-item">
						<h3 class="ui-border-b">
          <span id="fwd_aster" style="color: red; font-size: xx-large;display: none;">*</span><p>远期线</p><span id="forward_nums" class="ui-badge"></span>
        </h3>
						<ul id="forward" class="ui-list ui-border-b">
							<!--
                        	作者：xiaolinzi@vip.qq.com
                        	时间：2015-10-15
                        	描述：自動生成源碼
                        -->
						</ul>
					</li>
					<li class=" ui-selector-item">
						<h3 class="ui-border-b"><i class="arrow"></i>
          <span id="pla_aster" style="color: red; font-size: xx-large;display: none;">*</span><p>平台线</p><span id="plat_nums" class="ui-badge"></span>
        </h3>
						<ul id="plat" class="ui-list ui-border-b">
							<!--
                        	作者：xiaolinzi@vip.qq.com
                        	时间：2015-10-15
                        	描述：自動生成源碼
                        -->
						</ul>
					</li>
					<li class=" ui-selector-item" style="display: none;">
						<h3 class="ui-border-b"><i class="arrow"></i>
          <span id="gen_aster" style="color: red; font-size: xx-large;display: none;">*</span><p>总体线</p><span class="ui-txt-info ui-badge"></span>
        </h3>
						<ul class="ui-list ui-border-b">
							<!--
                        	作者：xiaolinzi@vip.qq.com
                        	时间：2015-10-15
                        	描述：自動生成源碼
                        -->
						</ul>
					</li>
				</ul>
			</div>
		</section>

		<br />
		<p style="font-family: '微软雅黑'; color: red; font-size: medium; text-align: center;">
			标*为必填内容
		</p>
		<br />
		<!--
        	作者：xiaolinzi@vip.qq.com
        	时间：2015-10-13
        	描述：不使用btn
        -->
		<!--<button class="ui-btn-lg ui-btn-danger" style="width: 200px; margin: auto;">
			提交
		</button>-->
		<a id="submit" class="ui-btn-lg ui-btn-danger" style="margin: auto; width: 200px;" href="javascript:preSubmit()">提交</a>
		<!--<span style="width: 200px; text-align:center">-->
		<!--<input type="submit" value="提交" class="ui-btn ui-btn-danger" style="width: 200px; text-align:center" />-->
		<!--</span>-->

		<!-- /.ui-container-->
		<script>
			 //生成全組信息
			highlight();
//			add_li(1, "spot", "MM請吃飯", 2);
			getMembers(sessionStorage.getItem("prodid"));
			 //生成星星
			 //			var prodid = sessionStorage.prodid;
			 //				getat("spot",prodid==1?2:1);	
			 //				getat("forward",prodid==2?2:1);
			 //				getat("plat",prodid==3?2:1);
			 //getat("spot",prodid==4?2:1);
			 //			var clicked;
			 //			$(document).ready(function() {
			 //					$(".fmer").click(function() {
			 //						if (clicked != $(this).text()) {
			 //							//					alert($(this).parent().next());
			 //							//					$(".star").show();
			 //							$(".fmer").next().hide();
			 //							$(this).next().show();
			 //							$(this).parent().next().show();
			 //							clicked = $(this).text();
			 //						} else {
			 //							$(this).next().hide();
			 //							clicked = 'inactive';
			 //						}
			 //					});
			 //				});
			$("input[type='range']").change(function() {
				$(this).next('p').text($(this).val());
			});
			$("h3").filter(".ui-border-b").click(function() {
				var parent = $(this).parent();
				if ($(this).parent().hasClass("active")) {
					$(this).parent().removeClass("active");
				} else {
					$(".ui-selector-item").removeClass("active");
					$(this).parent().addClass("active");
				}
			});
			 //生成星號
			function highlight() {
				var url = location.search;
				if (url.indexOf("?") != -1) {
					var str = url.substr(1);
					strs = str.split("=");
					group = strs[1];
				}
				if (group === "spot") {
					$("#spot_aster").show();
					return;
				}
				if (group === "forward") {
					$("#fwd_aster").show();
					return;
				}
				if (group === "plat") {
					$("#pla_aster").show();
					return;
				}
				if (group === "general") {
					$("#gen_aster").show();
					return;
				}
			}
		</script>

	</body>

</html>